package com.woniuxy.portal.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName(value ="t_book")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book implements Serializable {

    private Long id;

    private String name;

    private Integer typeId;

    private String publisher;

    private Date publicationDate;

    private String author;

    private Double price;

    private String detail;

    private String imgSrc;

    private Integer collectionCount;

    private Integer storeCount;

    private Integer buyCount;

    private Integer readCount;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private Integer state;

    @Version
    private Integer version;

    private static final long serialVersionUID = 1L;


}